Skip to main content
June 11, 2024
Solved

Extensibility Rules error

  • June 11, 2024
  • 1 reply
  • 3 views

I have the existing BR rule to export the region hierarchy which is working for last one year without any issues and I am trying to reuse the BR rule for country hierarchy export purpose. I copied & pasted the BR rules, and I am getting the error below while compling. Can you suggest what are all the possibilities to check these issues?

 

1) Error at line 313: Type 'SessionOptions' is not defined.

2) Error at line 315: 'Protocol' is not declared. It may be inaccessible due to its protection level.

3) Error at line 324: Type 'Session' is not defined.

4) Error at line 329: Type 'PGPLib' is not defined.

5) Error at line 338: Type 'TransferOptions' is not defined.

6) Error at line 339: Type 'TransferOperationResult' is not defined.

7) Error at line 340: 'TransferMode' is not declared. It may be inaccessible due to its protection level.

😎 Warning at line 18: Namespace or type specified in the Imports 'WinScp' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

9) Warning at line 19: Namespace or type specified in the Imports 'DidiSoft.Pgp' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

10) Warning at line 20: Namespace or type specified in the Imports 'DidiSoft.Pgp.Exceptions' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

Best answer by aformenti

Hi vpidala ,

Looks like you missing some Custom Imports within the New Business Rule you have created. Look at the original rule here and copy/paste them into the new one. Example:


aformenti_0-1718112550129.png

Also, you might be missing Referenced Assemblies, example:


aformenti_1-1718112605562.png

 

 

 

 

 

 

 

1 reply

aformentiAnswer
June 11, 2024

Hi vpidala ,

Looks like you missing some Custom Imports within the New Business Rule you have created. Look at the original rule here and copy/paste them into the new one. Example:


aformenti_0-1718112550129.png

Also, you might be missing Referenced Assemblies, example:


aformenti_1-1718112605562.png

 

 

 

 

 

 

 

Rams_2022Author
June 12, 2024

aformenti while execute the rule using the execute extender, I am getting followig error:

1) Unable to execute Business Rule 'Export_Country_Hierarchy'.  2) Invalid object name 'Country'.

I couldnot able to figure out whats happening really. I have rule using the sqlA1.append, etc?

 

June 12, 2024

HI vpidala,

It could be a lot of things. If you share the business rule you trying to run I could have a look.

Alternatively, if what you trying to do is export the hierarchy in a Parent/Child format in Excel (or CSV), I have recently posted the following post that could help you:

https://community.onestreamsoftware.com/t5/Rules/Create-CSV-with-Parent-Child-relationships-across-Extended/td-p/34851