Rechercher

Question
· Mars 21

Formato de Caracteres não Alfabéticos na Global

Iris Gravando Global com caracteres sem padrão alfabético:

^SASNETWEBORGAO(1,0) = "SECRETARIA DE ADMINISTRAÃ"_$c(135)_"Ã"_$c(131)_"O^1010^01010101"

 

Correto:

^SASNETWEBORGAO(1,0) = "SECRETARIA DE ADMINISTRAÇÃO^1010^01010101"

Como solucionar o problema?

4 Comments
Discussion (4)1
Connectez-vous ou inscrivez-vous pour continuer
Question
· Mars 21

VSCode - trying to use <sql> tag to call SELECT statement

I was using VSCode to edit a DTL because it seemed easier to copy/paste code from parts of the DTL I was editing. I tried to add <sql> tag and code to call a SELECT statement, but when I compiled I got the following error...

ERROR <Ens>ErrInvalidDTL: Invalid DTL

  > ERROR #5490: Error running generator for method 'GetSourceDocType:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(GetSourceDocType) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR #5001: element 'sql' is not allowed for content model '(annotation?,((true,false)|(false,true)|(true)|(false)))'

  > ERROR #5490: Error running generator for method 'GetSourceDocType:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(GetSourceDocType) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR <Ens>ErrInvalidDTL: Invalid DTL

  > ERROR #5490: Error running generator for method 'GetSourceType:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(GetSourceType) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR #5001: element 'sql' is not allowed for content model '(annotation?,((true,false)|(false,true)|(true)|(false)))'

  > ERROR #5490: Error running generator for method 'GetSourceType:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(GetSourceType) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR <Ens>ErrInvalidDTL: Invalid DTL

  > ERROR #5490: Error running generator for method 'GetTargetDocType:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(GetTargetDocType) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR #5001: element 'sql' is not allowed for content model '(annotation?,((true,false)|(false,true)|(true)|(false)))'

  > ERROR #5490: Error running generator for method 'GetTargetDocType:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(GetTargetDocType) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR <Ens>ErrInvalidDTL: Invalid DTL

  > ERROR #5490: Error running generator for method 'GetTargetType:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(GetTargetType) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR #5001: element 'sql' is not allowed for content model '(annotation?,((true,false)|(false,true)|(true)|(false)))'

  > ERROR #5490: Error running generator for method 'GetTargetType:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(GetTargetType) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR <Ens>ErrInvalidDTL: Invalid DTL

  > ERROR #5490: Error running generator for method 'Transform:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(Transform) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR #5001: element 'sql' is not allowed for content model '(annotation?,((true,false)|(false,true)|(true)|(false)))'

  > ERROR #5490: Error running generator for method 'Transform:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(Transform) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

Detected 10 errors during compilation in 0.045s.

 

Class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization' contains an invalid DTL document:

ERROR <Ens>ErrXMLValidation: Error in XML Validation: element 'sql' is not allowed for content model '(annotation?,((true,false)|(false,true)|(true)|(false)))' while processing Anonymous Stream at line 62 offset 6 %2

Is this just something that isn't available for editing within VSCode?

2 Comments
Discussion (2)3
Connectez-vous ou inscrivez-vous pour continuer
Article
· Mars 21 1m de lecture

Como colocar logs de aplicativos na global ^ERRORS

Rubrica de FAQ da InterSystems
 

Pode ser feito com o TRY-CATCH:

 #dim ex As %Exception.AbstractException
 TRY {
    //Code that causes an error
  }
  CATCH ex {
     do ex.Log()
  }

Se você usar o ^%ETN, chame-o a partir do bloco BACK (BACK^%ETN).

Por favor, dê uma olhada também no artigo relacionado: Como buscar erros de aplicação (^ERRORS) usando um comando

Discussion (0)1
Connectez-vous ou inscrivez-vous pour continuer
Annonce
· Mars 21

[Vídeo] Desbloqueando o aprendizado prático com o Instruqt

Olá Comunidade, 

Recentemente, @Dean Andrews, Chefe de Relações com Desenvolvedores, conversou com a Instruqt para compartilhar como a InterSystems está transformando o engajamento dos desenvolvedores:

>> Unlocking Hands-On Learning with Instruqt <<

“O Instruqt é útil para tutoriais interativos onde compartilhamos casos de uso específicos de nossa tecnologia com nossos clientes, parceiros e desenvolvedores ao redor do mundo... É uma maneira poderosa de mostrar aos nossos clientes e parceiros o quão fácil é usar a tecnologia InterSystems.” - Dean Andrews

Ele mencionou que, com uma comunidade global de mais de 22.000 desenvolvedores, a InterSystems precisava de uma maneira escalável e eficiente de mostrar sua tecnologia - da interoperabilidade de dados à IA generativa. Entre no Instruqt - uma plataforma flexível que permite a entrega de tutoriais interativos tanto sob demanda quanto em eventos ao vivo, como hackathons e Summits.

Ao integrar o Instruqt ao InterSystems Developer Hub e aos eventos, a InterSystems aprimorou o envolvimento dos desenvolvedores, reduziu a sobrecarga operacional e forneceu experiências de aprendizado imersivas, tudo isso tornando mais fácil do que nunca para os desenvolvedores explorarem nossa tecnologia.

Confira a entrevista completa para ver como estamos moldando o futuro da educação de desenvolvedores!

Discussion (0)1
Connectez-vous ou inscrivez-vous pour continuer
Annonce
· Mars 21

[Video] Unlocking Hands-On Learning with Instruqt

Hey Community,

Recently, @Dean Andrews, Head of Developer Relations, sat down with Instruqt to share how InterSystems is transforming developer engagement:

>> Unlocking Hands-On Learning with Instruqt <<

“Instruqt is useful for interactive tutorials where we are sharing specific use cases of our technology with our customers, partners and developers around the world... It's such a powerful way to show our customers and partners how easy InterSystems technology is to use. - Dean Andrews

He mentioned that with a global community of 22,000+ developers, InterSystems needed a scalable, efficient way to showcase their technology - from data interoperability to generative AI. Enter Instruqt - a flexible platform that enables the delivery of interactive tutorials both on-demand and at live events like hackathons and Summits.

By integrating Instruqt into InterSystems Developer Hub and events, InterSystems has enhanced developer engagement, reduced operational overhead, and provided immersive learning experiences - all while making it easier than ever for developers to explore our technology.

Check out the full interview to see how we’re shaping the future of developers' education!

Discussion (0)1
Connectez-vous ou inscrivez-vous pour continuer