Hi All,
Im trying to insert a string into my dom section through LCA using automation script and below is the error message im encountering in LCA.
Exception of type 'Skyline.DataMiner.Net.ManagerStore.CrudFailedException' was thrown.
Detailed error:
this is my source code for doing that,
private DomInstance CreateNewWorkflowInstance(DomHelper domHelper)
{
_engine.Log("CreateNewWorkflowInstance starts here");
var workflowSection = new Section
{
SectionDefinitionID = Em_Resourcemanagement.Sections.Workflows.Id,
};var servicesSection = new Section
{
SectionDefinitionID = Em_Resourcemanagement.Sections.Services.Id,
};var eventsSection = new Section
{
SectionDefinitionID = Em_Resourcemanagement.Sections.Events.Id,
};var resourceSection = new Section
{
SectionDefinitionID = Em_Resourcemanagement.Sections.Resources.Id,
};workflowSection.AddOrReplaceFieldValue(new FieldValue(Em_Resourcemanagement.Sections.Workflows.Event_Workflow_Name, new ValueWrapper<string>(_dialog.WorkflowNameTextBox.Text)));
_engine.Log("AddOrReplaceFieldValue done");
var newPoolInstance = new DomInstance
{
DomDefinitionId = Em_Resourcemanagement.Definitions.Workflow,
};
_engine.Log("Created definitions");
newPoolInstance.Sections.Add(workflowSection);
newPoolInstance.Sections.Add(servicesSection);
newPoolInstance.Sections.Add(eventsSection);
newPoolInstance.Sections.Add(resourceSection);
_engine.Log("Added Sections "+newPoolInstance.Sections.Count);
return domHelper.DomInstances.Create(newPoolInstance);
}
I can see logs until the return statement. but once create is executed, im getting crudfailed exception. There is no further details i can see.
Kindly help me debug what could be wrong here.
Hi Baranisudha,
I can't tell from the screenshot why exactly the create action is failing, because the TraceData is missing. If you check the logfile of the automation module, you should also find the exception, but with the TraceData. Could you provide me with this? This should be logged in the SLAutomation logfile in C:\Skyline DataMiner\logging
On the DomInstance page in the DataMiner Docs you can find all the possible TraceData and an explanation on what they mean.