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

Community site session details

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

Error while importing .csv file from SharePoint folder in ER configuration

(0) ShareShare
ReportReport
Posted on by 10

Hi Experts,

I am trying to import data from the csv file using custom model mapping. After adding all the setup and design, Import file is visible in File states for the sources form. When I try to run from model mapping, file is selected from the sharepoint folder to import but showing below error. Can anyone help to resolve this?

pastedimage1599911049140v1.png

Tarique

I have the same question (0)
  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    14,610 Super User 2025 Season 2 on at
    RE: Error while importing .csv file from SharePoint folder in ER configuration

    Hi Revathy

    Please create a new thread in the community to get better support.

  • Revathy  Profile Picture
    4 on at
    RE: Error while importing .csv file from SharePoint folder in ER configuration

    Hi Team,

    I am also experiencing the same error in the environment, let me know if you have resolved and what steps have been taken.

    Thanks

    Revathy

  • Christine.B.  Profile Picture
    20 on at
    RE: Error while importing .csv file from SharePoint folder in ER configuration

    Hi Ludwig,

     

    We are trying to import the customer receipts files (ISO20022 camt.054 credit advice) and the vendor payment status report files (ISO20022 pain.002) from SharePoint Online. We have got this configured and working successfully on our internal environment, but we are running into an issue on the customer's environment.

    When uploaded manually from the user’s browser, the same files upload successfully on the customer's environment. The files are visible (with a status of Ready) in the File states for the sources table and the system seems to try to import them, but we then get a status of Failed:

     pastedimage1607336580320v3.png

    Below is the error message we are getting, at first sight it seems like an issue with the ER configuration or model mapping. However, the manual import works, so that would suggests the ER configuration should be fine. 

    camt.054 message:

    Evaluating expression for path 'model/$FilteredPayments'.

    Evaluating expression for path 'Payments'.

    Evaluating expression for path '$AllTransactionDetails'.

    Evaluating expression for path 'format/Document/BkToCstmrDbtCdtNtfctn/Ntfctn'.

    Cannot edit a record in File states for the sources (ERImportFormatFileSourceStateTable). Update must be performed inside a transaction.

    Error while evaluating expression for path 'format/Document/BkToCstmrDbtCdtNtfctn/Ntfctn'.

    pain.002 message: 

    Evaluating expression for path '$TransactionsForMapping'.
    Evaluating expression for path 'model/OriginalGroupInformationAndStatus/$TransactionsByJournalNum'.
    Evaluating expression for path '$Status/PaymentStatus'.
    Evaluating expression for path 'GroupStatus'.
    Evaluating expression for path 'format/Document/CstmrPmtStsRpt/OrgnlGrpInfAndSts/GrpSts/IsMatched'.
    Cannot edit a record in File states for the sources (ERImportFormatFileSourceStateTable). Update must be performed inside a transaction.
    (S)\Classes\FormFunctionButtonControl\clicked
    Error while evaluating expression for path 'format/Document/CstmrPmtStsRpt/OrgnlGrpInfAndSts/GrpSts/IsMatched'.
    As you can see the only consistent part is the text highlighted in red.
    Any ideas / hints will be much appreciated, 
    Thank you
  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Error while importing .csv file from SharePoint folder in ER configuration

    Hello Christine.B.,

    Can you provide more details about your configuration and what you try doing exactly?

    Some screenprints would help.

    Many thanks and best regards,

    Ludwig

  • Christine.B.  Profile Picture
    20 on at
    RE: Error while importing .csv file from SharePoint folder in ER configuration

    Hello Tarique,

    Did you find a solution for this? We are experiencing the same issue using a standard ER configuration.

    Thanks,

  • Suggested answer
    Anup Shah MSFT Profile Picture
    on at
    RE: Error while importing .csv file from SharePoint folder in ER configuration

    Did you customize the file import from SharePoint? 

    You need to debug this as you may be outside a transaction boundary when doing an update.

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

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

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 708 User Group Leader

#2
Martin Dráb Profile Picture

Martin Dráb 589 Most Valuable Professional

#3
Yng Lih Profile Picture

Yng Lih 553

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans