web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Record validation in electronic reporting

(5) ShareShare
ReportReport
Posted on by 128
Hi All,
 
There is a requirement to validate creditor postal address (whether there is a record or not) in "ISO20022 Credit transfer" format.
How to validate for an empty record in electronic reporting? For lists there is "ISEMPTY", for a record is there anything? 
 
 
Path: '$PaymentByDebtor'.lines.Creditor.PostalAddress
 
Can anyone help me on this?
 
Thanks,
Gihan
 
Categories:
I have the same question (0)
  • Suggested answer
    Adis Profile Picture
    6,048 Super User 2025 Season 2 on at
    Hi,
     
    I am not 100% sure what the requirement is. 
    Do you want to prevent the user to create the xml file if the condition is met?
    Or do you want to set it up as an if condition, like if the address is empty then the outcome is a ""(blank) string? 
    Or both?
     
    Apart from that, you can check the standard format (1) for validations (2).
    Find examples (3) and (4) if you want to check for an empty list or a blank string.
    These validations prevent the user from creating the xml file and will throw an error with the error message set up.
     
     

    Kind regards, Adis

     

    If this helped, please mark it as "Verified" for others facing the same issue

    Keep in mind that it is possible to mark more than one answer as verified

  • egsameera Profile Picture
    128 on at
    Hi Adis,
     
    Thank you for the respond.
     
    Yes, I want to prevent the user to create the xml file if the condition is met. 
    And if the values are blank, it hides the tags from the file.
     
    Below is the validation, but it doesn't prevent creating the file. 
     
    Path: ISO20022CTReports/XMLHeader/Document/CstmrCdtTrfInitn/PmtInf/CdtTrfTxInf/Cdtr/PstlAdr/Ctry/String
    Condition: '$PaymentByDebtor'.lines.Creditor.PostalAddress.Country=""
    Message: "Error - Country/region cannot be blank"
    Post-validation action: Stop execution (raise an error)
    Write a log: To both locations
     
    And in standard validations (2) it is a List {NOT(ISEMPTY('$PaymentByDebtor'))}.
    In this case it is a Record {'$PaymentByDebtor'.lines.Creditor.PostalAddress} as I have mentioned in the initial post.
     
    Is there any way that I can check whether the {'$PaymentByDebtor'.lines.Creditor.PostalAddress} record is blank or is there anything I have missed in the condition?
     
    Thanks,
    Gihan
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans