Nova postagem

Pesquisar

Anúncio
· Mar. 21

Avis de maintenance planifiée

🚨 Avis de maintenance planifiée 🚨

La Communauté des développeurs InterSystems fera l'objet d'une maintenance planifiée demain (22 mars 2025) de 16h30 à 18h30 CET.

Durant cette période, la plateforme pourrait avoir des interruptions de service. Nous vous prions de nous excuser pour la gêne occasionnée et vous remercions de votre patience pendant que nous travaillons à l'amélioration de nos services.

Merci de votre compréhension !

Maintenance Windows: Keep it short or use it all?

Discussão (0)1
Entre ou crie uma conta para continuar
Anúncio
· Mar. 21

Planned Maintenance Notice

🚨 Planned Maintenance Notice 🚨

The InterSystems Developer Community will undergo scheduled maintenance tomorrow (March 22, 2025) from 10:30 AM to 12:30 PM EST (16:30 to 18:30 CET).

During this time, the platform may experience intermittent downtime. We apologize for any inconvenience and appreciate your patience as we work to improve our services.

Thank you for your understanding!

Maintenance Windows: Keep it short or use it all?

Discussão (0)1
Entre ou crie uma conta para continuar
Pergunta
· Mar. 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
Discussão (4)1
Entre ou crie uma conta para continuar
Pergunta
· Mar. 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
Discussão (2)3
Entre ou crie uma conta para continuar
Artigo
· Mar. 21 1min de leitura

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

Discussão (0)1
Entre ou crie uma conta para continuar