Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Error when trying to add New Transaction under Manage Gift

(0) ShareShare
ReportReport
Posted on by 47

Hi all,

Complete new Environment and fresh installs of all solutions and I still get this.

Maddening,

Any ideas?

Thanks!

TypeError: Cannot read properties of undefined (reading '0')
at Object.msnfp.loadConfiguration (lschub.crm.dynamics.com/.../msnfp_transaction_form.js:530:51)
at Object.msnfp.Transaction.OnLoad (lschub.crm.dynamics.com/.../msnfp_transaction_form.js:114:15)
at y._executeFunctionInternal (lschub.crm.dynamics.com/.../app.js
at y.execute (lschub.crm.dynamics.com/.../app.js
at lschub.crm.dynamics.com/.../app.js
at i (lschub.crm.dynamics.com/.../app.js
at ee._executeIndividualEvent (lschub.crm.dynamics.com/.../app.js
at ee._executeEventHandler (lschub.crm.dynamics.com/.../app.js
at Object.execute (lschub.crm.dynamics.com/.../app.js
at N._executeSyncAction (lschub.crm.dynamics.com/.../app.js

Error Details:
Event Name: onload
Function Name: msnfp.Transaction.OnLoad
Web Resource Name: msnfp_/scripts/msnfp_transaction_form.js
Solution Name: FundraisingandEngagement
Publisher Name: microsofttechforsocialimpact

  • Bene Profile Picture
    Bene 10 on at
    RE: Error when trying to add New Transaction under Manage Gift

    I ran into the same issue and i was able to solve it by:

    1. Following the post deployment process "Configure Azure Cloud Shell":

    https://learn.microsoft.com/en-us/dynamics365/industry/nonprofit/fundraising-engagement-deploy-installer#configure-azure-cloud-shell

    2. And adding a (dummy) stripe payment processor to the configuration, see here:

    https://learn.microsoft.com/en-us/dynamics365/industry/nonprofit/fundraising-engagement-deploy-configuration#set-up-a-payment-processor

    After this I was able to create both transactions and payment schedules without an error. I think the Problem was that the JS somehow references the payment provider. If there is none in the configuration, an error is thrown.

    I hope Microsoft will update this solution soon.

    Update 

    I have realised that each transaction gets completely locked regardless of the transaction status (i the documentation it sais only the amount field and the donor or something are locked). So I changed the javascript in the file "msnfp_transaction_form.js" as follows:

    //Make Fields Read Only
    //MANUALCHANGE
    // In case the transaction is "In complete state" prevent changes
    if (formContext.getAttribute("statuscode").getValue() == transactionStatusCode.Completed) {
    MissionFunctions.SetFieldsDisabled(formContext, true, ["msnfp_membershipinstanceid", "msnfp_taxreceiptid"], ["msnfp_donorcommitmentid1", "msnfp_amount1"], true);
    }

    The original line was just:

    MissionFunctions.SetFieldsDisabled(formContext, true, ["msnfp_membershipinstanceid", "msnfp_taxreceiptid"], ["msnfp_donorcommitmentid1", "msnfp_amount1"], true);

    Now the Transaction is locked when the status is completed, which makes sense, since we don't want to change any completed transactions.

  • elisi Profile Picture
    elisi 25 on at
    RE: Error when trying to add New Transaction under Manage Gift

    Thank you so much!!

  • RE: Error when trying to add New Transaction under Manage Gift

    Hi,

    I think, sharing the script here is not a good idea and it is not an ideal way. I suggest you to raise one service request for respective problem from admin portal, team will suggest you the needful.

    Please check one more thing, did you map configuration record with logged in user, if not please map the same using below steps

    To check configuration record association, please go to Settings -> Advanced Settings -> Settings tab -> Security -> Users -> Find user -> Click on username -> Select Fundraising and Engagement User - > Check associated configuration record. In the configuration field you need select a config record and save.

    [View:https://portal.microsofticm.com/api2/asset/image/43359d5f-1cfb-4837-8d5f-e906fc57b950?sv=2018-03-28&sr=b&sig=UgGiOknCpHwN2Izst7Fo5MYZC%2Br27sU8jJdRGAp6P9A%3D&st=2022-06-06T05%3A18%3A11Z&se=2024-06-06T05%3A18%3A11Z&sp=r&sig2=tocomelater:320:240]

     

     

  • elisi Profile Picture
    elisi 25 on at
    RE: Error when trying to add New Transaction under Manage Gift

    This is great. issues on contacts and transactions are now resolved but still having same script error in donor commitments and payment schedules.

    HaleyUWCV appreciate if you could share the default script that needs to be removed. Thanks!

  • RE: Error when trying to add New Transaction under Manage Gift

    Hi,

    I am suspecting that after deploying the F&E application you have not setup the configuration record which may causing the script error issue. If you have not setup the configuration and payment processor record in F&E app, please refer below link for understand and setup the configuration record in F&E app.

    https://docs.microsoft.com/en-us/dynamics365/industry/nonprofit/fundraising-engagement-configure#primary-configuration-record 

    Thanks!

  • elisi Profile Picture
    elisi 25 on at
    RE: Error when trying to add New Transaction under Manage Gift

    OneEyedJack I am having the same script error. May I know what is the default script that should be removed?

  • OneEyedJack Profile Picture
    OneEyedJack 47 on at
    RE: Error when trying to add New Transaction under Manage Gift

    So glad it worked for you all!

  • Marx2020 Profile Picture
    Marx2020 171 on at
    RE: Error when trying to add New Transaction under Manage Gift

    Seems a pretty unfinished piece of work to me.  Not much guidance documentation that I've been able to find (e.g. modelling an event)..

  • HaleyUWCV Profile Picture
    HaleyUWCV 5 on at
    RE: Error when trying to add New Transaction under Manage Gift

    Thank you so much!! I also had to do the same under Donor Commitments - fyi to anyone else that has issues.

  • Suggested answer
    Marx2020 Profile Picture
    Marx2020 171 on at
    RE: Error when trying to add New Transaction under Manage Gift

    thanks my friend.

    cheers,

    Steve.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,759 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,468 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans