ATG CSC Environment exception - atg

for one of our site while clicking on Workonlink in ordersearch reults i am getting below excption:
Error /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-55/atg/commerce/custsvc/environment/ChangeOrder --- atg.svc.agent.environment.EnvironmentException: Order contains unsupported features and cannot be modified.
Error /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-142/atg/commerce/custsvc/environment/ChangeOrder at atg.commerce.csr.environment.UIEnvironmentMonitor.generateDependentDetailsForOrderChange(UIEnvironmentMonitor.java:171)
Error Mon Jun 01 18:39:53 EST 2015 1433147993695 /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-/atg/commerce/custsvc/environment/ChangeOrder at atg.commerce.csr.environment.UIEnvironmentMonitor.generateDependentChangeDetails(UIEnvironmentMonitor.java:144)
Error /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-142/atg/commerce/custsvc/environment/ChangeOrder at atg.svc.agent.environment.EnvironmentMonitor.generateChangeDetails(EnvironmentMonitor.java:179)..
can anyone please tell how enviornment things work in csc.
Thanks..

My guess is you are using some b2b features which are not supported in CSC. Below is an extract from the Oracle ATG documentation:
Note: Commerce Service Center does not support Commerce B2B features within orders. If the order contains a B2B feature, such as a purchase order or cost centers, you will be able to view the order, but will be unable to make any modifications to the order. An error message will appear, indicating that the order contains unsupported features and cannot be modified.
You can read more about this here

Related

Skip field validation when creating a record using Dynamics 365 web api

I am integrating Dynamics 365 with our product, and I am running into an issue when creating fields on dynamics 365 using web api.
I am creating a contact or lead using a set of fields such as email, name etc. Some fields seem to have validation, such as number only field, or picklist. In these cases I am getting an error with 400 status and the record is not created. Is there a way to just create the record using the valid fields and just skip updating the fields that failed validation.
This is the end point I am using for creating a contact:
/api/data/v9.1/contacts
Headers used:
Prefer:return=representation
Content-Type:application/json
OData-MaxVersion:4.0
OData-Version:4.0
If-None-Match:null
You have two options:
Either do the proper validation when user entering values for those fields from outside Dynamics.
Or create custom fields in Dynamics contact entity to store the string type values
Web api payload has to be whole and cannot be truncated/set for adhoc scenarios like skip failing datatypes (your requirement).
Hope this helps. No matter what software or environment you are integrating with, it is important to know your data structure including data types, data validations (including required yes/no) and data constraints (length, decimal places, etc.).
There are three ways you can integrate with Dynamics 365 factoring in the above.
1. Static code based on the Dynamics 365 configuration
If you can login to Dynamics 365, you can view the environment definition by going to Settings > Customizations > Customize the System.
From here you can view all Entity and Attribute definitions and and write your code accordingly. You can also "require" installation of your own solution with Entities and Attributes, giving you control over what your integrating with.
2. Creating Early-Bound classes
You can generate Early Bound classes with the Entity and Attribute definition from Dynamics 365 with the CrmSvcUtil tool. For more information.
For more information:
https://learn.microsoft.com/en-us/dynamics365/customer-engagement/developer/org-service/create-early-bound-entity-classes-code-generation-tool
3. Dynamics 365 Metadata service
Dynamics 365 provides a Metadata service, enabling you to retrieve the exact definition of alle Entities and Attributes directly from the given Dynamics 365 environment. As such you can retrieve the definition prior to integrating.
I think considering the performance, this is definitly not something you would like to do every single message. To resolve this you could retrieve the definition on request (manual trigger) or daily.
For more information: https://learn.microsoft.com/en-us/dynamics365/customer-engagement/customize/create-edit-metadata
When working with Dynamics 365, the XRMToolBox is a must have tool for any developer or consultant. With the tools Metadata Browser plugin you can view the data that you can retrieve by the Metadata service.

Access to __MDrivenServer locked

Although I have been using ECO from a few years, I am very new to MDriven Turnkey.
I have created an account and a site in portal.mdriven.net, but when I visit MDrivenServer I get the following message:
You currently do not have access - this is due to setting AdminRequireIdentification==true and you do not have correct role
According to the help manual in MDrivenTheBook Part 10 MDrivenTurnkey:
"When you have accidently locked yourself out you can find the admin database, open it with SqlServerCompact tools. Find table admin_GlobalSettings and set column TurnOffRegistration to 0 (false) – now you may register a new user and regain control."
The database is located in __MDrivenServer\App_Data\DatabaseCompact.sdf
I have Visual Studio 2010 and I have also downloaded the SQL Server Compact Tools, but I have not idea how to open the
https://SchoolAurelio.azurewebsites.net/__MDrivenServer/App_Data/DatabaseCompact.sdf in order to set the column TurnOffRegistration to 0.
How can I update the sdf file?
Thanks,
Jose Maria
In the Compact tools you do something like "connect" and choose the sdf downloaded file. Once there there you can do sql on the ASP_User table.
BUT - in the portal.mdriven.net you have a SendSettingsAndRestart, this operation should unlock a locked mdriven-database. It will also inject a new pwd if you have changed it in portal. Please try this operation and see if things clear up.

Drupal 7 Create a new account for an anonymous order only for commerce license orders

With Drupal 7 using Rules 7.27, I've installed and set up Drupal Commerce with no real problems.
The rule ‘Create a new account for an anonymous order’ works well but I need to add a condition that only executes the action of creating a new account only if the product being ordered is a Commerce License. Commerce License is an entity so I tried both of the following conditions, but they prevent the Rules actions from triggering:
Entity is of type: Parameter: Entity: [site:current-cart-order], Entity type: Commerce License
Entity is of type: Parameter: Entity: [commerce-order], Entity type: Commerce License
It's apparent I don't have a full grasp of how to tell the Rule that the order processed is not just any old order but a specific order type. I would be fine with identifying it with any criteria possible, like product/order name, but it seems that I've hit a blockage in understanding the whole Commerce universe in relation to Rules.
Does anyone have any idea what conditions to specify to tell the actions only to fire if the order is for a commerce license?
Use the condition Commerce Order: Order contains products of particular product types.

Create Journal Entry using V3 API?

How can you insert a general Journal Entry using V3 API? In V2, there was the JournalEntry object, but I don't see one in the V3 docs or the rollout schedule.
This is what I'm trying to accomplish: when an invoice is created in our system, we're making the appropriate create call that includes the invoice header and lines. At the same time, we need to make 0 or more journal entries related to each line. These are not the standard journal entries which QB automatically makes for invoices, but instead future revenue recognition entries related to each line. The recognition calculations take place in our app and if there are journal entries, the data needs to be sent to QB.
It is not available in V3 yet. It is not part of coming OCT release also.
Ref - https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/v3/030_entity_services_reference/0500_v3_supported_entities_and_operations
Release notification will be made in the blog.
Blog - https://developer.intuit.com/blog
Thanks

If anyone has experience about bugs ,problems or any related link of DB2 v.10 FOR ZOS , please reply?

Hi
I want to use db2 10 for zos.
If anyone has experience about bugs ,problems or any related link of DB2 v.10, please reply?
thanks for your attention.
If you're running z/OS, you will, or should, have a contract with IBM. In that case, you will have access to PMR/APAR information that IBM publish.
You just do a search on the product COMPID(s) to discover any issues and fixes.
If you don't have such an agreement with IBM (though, seriously, why would you spend all that money of the OS and products and not get support?) , head on over to the DB2/z product page and look at the "Product Support" link. The page that brings up has information on all the recent and important PTFs that you should examine.
The COMPIDs from the DB2/z v10 Program Directory are:
FMID COMPID Component Name
------- --------- ----------------------------
HDBAA10 5740XYR00 DB2 BASE/TSO
HIYAA10 5740IY100 IMS ATTACH
HIZAA10 5740XYR01 DB2 SUBSYSTEM INITIALIZATION
HIR2230 569516401 IRLM V02.03.00
HDREA10 5740DRE00 RACF AUTHORIZATION EXIT
JDBAA12 5740XYR02 DB2 JDBC/SQLJ
JDBAA14 5740XYR00 DB2 ENGLISH PANELS
JDBAA17 5740XYR02 DB2 ODBC
JDBAA11 5740XYR06 DB2 KANJI PANELS