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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer Service forum

Issue with on page java + App for Outlook

(0) ShareShare
ReportReport
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:
I have the same question (0)
  • LeoAlt Profile Picture
    16,341 Moderator on at

    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 > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans