Skip to main content

Notifications

Announcements

No record found.

Customer Service forum

Issue with on page java + App for Outlook

Posted on by

Hi all - I hope that you can advise ...

From the App for Outlook >> Create a new Contact record

Will not allow a Save - presents an error which seems to relate to onpage java on the Contact form.  I know basic java - but I'm no expert.  The code was written by developers who aren't on the project any more. I'm guessing that it relates to setting values for 'B2B' or 'B2C' - and that I need to change the java.  The error is as follows and I'd be grateful for any advice of how to trace and find it, and how to fix it so that users can save a contact record from the App for Outlook.  Thanks in advance ...

UciError: Invalid value 1 for OptionSetValue

   at C (xxxx.crm4.dynamics.com/.../app.js

   at N (xxxx.crm4.dynamics.com/.../app.js

   at t.prototype.setValue (xxxx.crm4.dynamics.com/.../1.js

   at CheckB2BorB2CSelected (Unknown script code:42:13)

   at Save (Unknown script code:17:5)

   at e.prototype.executeFunction (xxxx.crm4.dynamics.com/.../app.js

   at e.prototype.execute (xxxx.crm4.dynamics.com/.../app.js

   at e.prototype._executeIndividualEvent (xxxx.crm4.dynamics.com/.../app.js

   at e.prototype._executeEventHandler (xxxx.crm4.dynamics.com/.../app.js

   at execute (xxxx.crm4.dynamics.com/.../app.js

Categories:
  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Issue with on page java + App for Outlook

    Hi parnter,

    First of all, are you talking about Javascript code on the contact form not JAVA code? They are two completely different code that JS is a front-end code and JAVA is a background develop code.

    According to this error message, you should go to find the OptionSetValue feild in the form and check if there is an option with value 1. You could find in the custom code and search for some code like "if value==1".

    You could also provide the code if possible and I might be able to find out the solutions.

    Hope it helps.

    Best Regards,

    Leo

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans