I am not able to save the process even though I have that lookup and the values in that and I am not getting how to solve this issue

 

 

 

Schema has errors: OpenEditPageUserTask1.RecordColumnValues.guptaStatus [Error while executing expression "[#Lookup.Status.New#]": Formula value error: Expression expected (at index 0).].

Like 0

Like

3 comments

Hello! 

Could you please send a screenshot of the OpenEditPage settings? 

Best regards,

Dennis

Dennis Hudson

Yeah sure

Gupta,

It is likely that on your Request object in configuration you have default value of the Status field populated with the value (of the lookup) that was deleted from the system. In this case you would need to go to configuration and remove this value from default value of the Status column, after that publish an object. 

Best regards, 

Dennis

Show all comments

according to my need I have created a new custom detail by following these steps:-

1) I've created a new object for my detail.

2) Next, using detail wizard I have created a new detail using the created object and then I have added few fields and that detail  I have added to my account section.

everything is working fine, but when I have tried to fill the fields  and save first under same account it was saved, but using the same account I tried to another one by filling the fields then I got this error how can I get out of this

 

Violation of PRIMARY KEY constraint 'PKKOuATTzB7cDsHskkp5OVQlx5Jog'. Cannot insert duplicate key in object 'dbo.guptaCompanyFleet'. The duplicate key value is (cad50d15-f28d-49fc-aa79-21615ac35b86). The statement has been terminated.

 

Like 0

Like

6 comments

Hi,

Check on what foreign key it is triggered and investigare connection in DB.

You may use this script: 

Select C.*, (Select definition From sys.default_constraints Where object_id = C.object_id) As dk_definition,

(Select definition From sys.check_constraints Where object_id = C.object_id) As ck_definition,

(Select name From sys.objects Where object_id = D.referenced_object_id) As fk_table,

(Select name From sys.columns Where column_id = D.parent_column_id And object_id = D.parent_object_id) As fk_col

From sys.objects As C

Left Join (Select * From sys.foreign_key_columns) As D On D.constraint_object_id = C.object_id

Where C.parent_object_id = (Select object_id From sys.objects Where type = 'U'

And name = '%Table name%') and type_desc = 'FOREIGN_KEY_CONSTRAINT' -- and C.name = 'PKKOuATTzB7cDsHskkp5OVQlx5Jog' 

Best regards,

Angela

Hi Gupta,

Please check the below following points.

1. Check whether correct lookup is mapped to the field in the detail. For example - Consider you are placing the Company fleet detail in Account's section, Company fleet detail should have a lookup mapped to Account.

2. Check whether the detail is properly mapped with correct field to the section in the section's edit page. For example - detail column should be the lookup which is pointing to 'Account' and the object column should be 'Id' of the account section.

3. If the error still persists, check for any key constraints as suggested by Angela using the above script in sql console.

Thanks,

Mohamed.

Hi Angela thank you for your reply, but how to connect to database or how to find the sql database.

 

Gupta,

If it is installed on premise you can connect to it via SQL manager, otherwise you can use SQL executor application

Angela

Yeah OKay thank you for your reply

 

Hello Chiadika,

 

Such error can have a few possible root causes, due to which the record/page is being saved twice. 



This way 2 requests InsertQuery are being sent to DB while saving the record, one of them is being processed correctly and creates a new record, the other one tries to create a record with already existing Id, which is impossible, so the system doesn't let to save the changes. 

It's possible to check the duplicate request in the Network console while recreating the case. I would advise to check it if the issue occurs again and as of now to double-check the mentioned in the notification objects (settings, etc) in your database to prevent similar situations in the future. 

 

Best regards,

Roman

Show all comments

Hi Community,

Any Idea, how can I retrieve not only the unique identifier of the deleted record but also the parent foreign key of the deleted record on delete signal?

My scenario is:

On deletion of a child record, I want to create a business process that will be triggered on delete signal. Then do the re computation of the total amount on parent record after the deletion of the child record. But the problem is on delete signal I can only retrieve unique identifier of the deleted record, I need also to retrieve the parent foreign key of the deleted record for me to re compute and update to total amount of the parent record.

Thanks,

Like 1

Like

6 comments

Dear Fulgen,

If a process that starts on record deletion is started not in the background you can simply add "read data" element that will read all data needed from a record that is deleted. 

Best regards,

Angela

Angela Reyes,

Hi Angela,

Thanks for the reply.

Can you show me example how can i design this logic on business process.

Fulgen Ninofranco,

Just uncheck "Run following elements in the background"

checkbox (http://prntscr.com/o2rt5q) and read all data from the record with this Id. 

Thank you Angela, this solves my problem

Hello colleagues,

 

In 7.18.3.1241 it didn't works, please see on https://prnt.sc/1tzz9qp, I have configured, but cannot recover data from deleted record to update detail totals

Hello Julio,

 

Please provide more details on this object from which records are deleted and how exactly you've deleted them? The simple process that triggers upon deleting one contact works perfectly in 7.18.3 full bundle on my end.

 

Best regards,

Oscar

Show all comments
Question

Dear Team,

                 Please share Hierarchy list view implementation.

 

Regards,

Sekhar.

Like 0

Like

1 comments

Dear Sekhar,

You can install this application https://marketplace.bpmonline.com/app/hierarchy-list-view-bpmonline

If you need to develop similar functionality - feel free to analyze its source code and refer to it as an example. 

Best regards,

Dean

Show all comments

Hi,

I would like to know how can i trigger 'someMethod' by adding, editing or removing something in my detail.

 

Like 1

Like

4 comments

Dear Pedro,

Please find the options to trigger your custom method:

adding:

you can override the addRecord method of BaseGridDetailV2 to launch your custom method along with parent realization.

editing:

You can create a new attribute on the page schema, which will trigger method "methodName" based on the changes in indicated columns:

"Probability": {
    // Determination of the column dependency.
    "dependencies": [
      {
        // Depends on the "Stage" column.
        "columns": [ "Stage" ],
        // The name of the handler method for the "Stage" column change.
        // setProbabilityByStage() method is defined  in methods property
        // of schema object.
        "methodName": "setProbabilityByStage"
      }
    ]
  }

delete:

you can override the basic deleteRecords method on the detail schema, so to run your custom method after, or before parent realization of the method.

Regards,

Anastasia

Anastasia Botezat,

 Hi,

I've tried to override "deleteRecords" method on my detail schema page, and didn't work, I think its because of package dependencies but I'm not sure.

Pedro Pinheiro,

The "deleteRecords" method does work on the detail schema. Please debug the code, so to narrow down the possible cause. Here is an instruction on the client side debug:

https://academy.bpmonline.com/documents/technic-sdk/7-13/client-code-debugging

Regards,

Anastasia

Anastasia Botezat, I manage to fix my problem using "onDelete" instead of the "deleteRecords" method.

Thanks for your response.

Show all comments

Hi,

I have a EntityCollection and i would like to know how can i add Objects to that EntityCollection in my ScriptTask.

EntityCollection ec = Get("ProcessParameter1");

var entity;

ec.Add(entity);

Set("ProcessParameter1",ec);

Like 0

Like

1 comments

The Add method is correct. Additionally, I'd not recommend using a simple list instead. 

Show all comments

Hi , Can anyone help me in solving the errror while seeting up OAuth Authentication getting error in redirect Url as 

The server encountered an error processing the request. The exception message is 'Object reference not set to an instance of an object.' 

Here I am attaching the screenshot of configuration of OAuth login Page.

I am getting the exception after allowing permsission and after redirect Url . Should i need to add anything extra in redirect url or how will i get access token based on result of Redirect URL?

 

Thank You.

 

 

Like 0

Like

2 comments

Thibault Cros,

Hi, please contact our support team, we need more information to solve your problem - support@creatio.com

Show all comments

Hi,

I'm currently trying to obtain the "Id" from one of the contacts in my "Contact" table but I'm getting the same error:

Terrasoft.Common.ItemNotFoundException: Value "Id" was not found.

   at Terrasoft.Core.Entities.EntityColumnValueCollection.GetByName(String name)

   at Terrasoft.Core.Entities.Entity.InternalGetColumnValue(String valueName)

   at Terrasoft.Core.Entities.Entity.GetColumnValue(String valueName)

   at Terrasoft.Core.Process.UsrProcess2MethodsWrapper.ScriptTask1Execute(ProcessExecutingContext context)

   at Terrasoft.Core.Process.ProcessScriptTask.InternalExecute(ProcessExecutingContext context)

   at Terrasoft.Core.Process.ProcessFlowElement.Execute(ProcessExecutingContext context)

 

This is the script task i'm using for it:

var result = "";

var userConnection = Get("UserConnection");

    

EntitySchemaManager esqManager = userConnection.EntitySchemaManager;

var rootEntitySchema = esqManager.GetInstanceByName("Contact") as EntitySchema;

var esqResult = new EntitySchemaQuery(rootEntitySchema);

esqResult.AddColumn("Id");

esqResult.AddColumn("Name");

var entities = esqResult.GetEntityCollection(UserConnection);

result = entities[0].GetColumnValue("Id").ToString();



Set("ProcessSchemaParameter1", result);

return true;

Note: If i try to get the "Name" instead i dont get any error.

Like 0

Like

1 comments

Try this

var opportunityCarQuery = new EntitySchemaQuery(UserConnection.EntitySchemaManager,"OpportunityCar");
opportunityCarQuery.AddAllSchemaColumns();
 
var filter = opportunityCarQuery.CreateFilterWithParameters(FilterComparisonType.Equal, "Car", (Guid)carNodeId);
opportunityCarQuery.Filters.Add(filter);
 
var opportunityCarEntities = opportunityCarQuery.GetEntityCollection(UserConnection);
 
foreach (var opportunityCarEntity in opportunityCarEntities)
{
	var theId = opportunityCarEntity.GetTypedColumnValue<Guid>("Id");
}

 

Show all comments

After adding a custom detail with an edit page to the self-service portal page, the "+" button (add entry) does not visible.

How to make the addition of a record work in detail?

Like 0

Like

1 comments

Dear Grigoriy,

Please destribute access rights on the detail object for portal users. For example you have a detail based on UsrObject, then you need to turn on "managed by operations" for UsrObject for portal userd, so tha they can add and edit records.

http://prntscr.com/nuhpmo

 

Regards,

Anastasia

Show all comments
Question

Hi All , 

 

I am trying to create 'Account Category' Machine Learning Model in my demo version as mentioned in academy . (Ref Link : https://academy.bpmonline.com/documents/administration/7-14/how-create-lookup-value-prediction-model) . 

 

While doing the same steps  , when I am trying to train the model , I am getting an error 

 

Error message text[InternalServerError] Authentication service not available - Service Unavailable(ServiceUnavailable). Content: Request unsuccessful. Incapsula incident ID: 0-59084293183112519

I guess I am missing some webservice  integration ? Do I need to installl any plugin  ? Do I need to integrate BPM with some application  to start my ML model prediction ?

 

 

 

 

Like 0

Like

1 comments

Hi,

I recommend you to contact bpm'online support regarding this issue (support@bpmonline.com).

Best regards,

Angela

Show all comments