Invoice Document Not Being Sent to ACtion Center

Hi,

I am using the DU template to get data from invoices.

Am using the following condition for otherConfidenceFields(same as standard code)

otherConfidenceFields.Any(Function(confField) If(Not String.IsNullOrEmpty(documentFields(confField)) AndAlso Not io_ExtractionResults.ResultsDocument.Fields.Where(Function(field) field.FieldName.Equals(confField)).Select(Function(missing) missing.IsMissing.Equals(True))(0) AndAlso CDec(io_ExtractionResults.ResultsDocument.Fields.Where(Function(field) field.FieldName.Equals(confField)).Select(Function(actual_field) actual_field.Values.Select(Function(val) val.Confidence))(0)(0))*100 < CDec(in_Config(“other-Confidence”)), True, False))

However for Bpay Referece the extracted value is null but the invoice is not being sent to the Action Center.
I have in Config file maintained “other-Confidence” = 85

Any help will be appreciated?

Hi @nanmishra

In the config file please check whether the other confidence row contains the field name you mentioned here.

Regards

@nanmishra
And also check the config fields with your taxonomy fields also.Check whatever fields your taxonomy have are there in Config file.

Hi @nanmishra

Please check in the above image I have highlighted the sheet and the row. Whatever the fields mentioned in that row will be considered for the other confidence fields and only those fields will be checkd for the othe confidence. So, make sure the row contains the Bpay.

So in such a way every sheet will consider that field so make sure to select the proper sheet as per your requirement.

Regards

Yes it does contain that field
image

What is the type of Doc you are working on? @nanmishra

Regards

HI @nanmishra

Please add the break points for the blocks highlighted in the red mark (Change the flow accprding to your doc type )and from there please run the bot in debug mode and make sure the bot get’s into the other confidence field.

Regards

DocType is Invocies and I am using the InvoicePostProcessing workflow.
However the data is not extracted for the field. So id data extracted is null then will it still check for the confidence as in this case now confidence is 0? I want to get this clarified.

@nanmishra

As per this if the value is not null then it goes to false and not true…is it on false side you are trying to send to action center?

Cheers

Thanks Anil. Not very conversant with .Net code. So not able to understand that code. This is the standard code in template.

So if value of the field is null it will not trigger action center…right?

otherConfidenceFields.Any(Function(confField) If(Not String.IsNullOrEmpty(documentFields(confField)) AndAlso Not io_ExtractionResults.ResultsDocument.Fields.Where(Function(field) field.FieldName.Equals(confField)).Select(Function(missing) missing.IsMissing.Equals(True))(0) AndAlso CDec(io_ExtractionResults.ResultsDocument.Fields.Where(Function(field) field.FieldName.Equals(confField)).Select(Function(actual_field) actual_field.Values.Select(Function(val) val.Confidence))(0)(0))*100 < CDec(in_Config(“other-Confidence”)), True, False))

@nanmishra

Can you check where the false condition goes…basically when null then it goes to false side

If on false side if action center is there it will be triggered else no

Cheers

Thanks a lot Anil_G. I understand. False side was set to not call action center. Hence the issue.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.