Hi Experts,
I am using Table UDF in a projection node in a calculation view. I have below errors when try to activate it. But if I run the Table UDF in SQL console as SELECT * FROM ...(the Table Function name) I don't have any issues.
Repository: Encountered an error in repository runtime extension;Model inconsistency. Create Scenario failed:
Mapped source attribute h_rank is missing in node _SYS_SS2_RETURN_VAR_(calculationNode (finalProjection) -> inputs -> input (ztf_function_area_hierarchy) -> mappings -> mapping (h_rank))
The following errors occurred: Inconsistent calculation model (34011) Details (Errors):
- calculationNode (finalProjection) -> inputs -> input (ztf_function_area_hierarchy) -> mappings -> mapping (h_rank): Mapped source attribute h_rank is missing in node _SYS_SS2_RETURN_VAR_.
- calculationNode (finalProjection) -> inputs -> input (ztf_function_area_hierarchy) -> mappings -> mapping (tree_size): Mapped source attribute tree_size is missing in node _SYS_SS2_RETURN_VAR_.
- calculationNode (finalProjection) -> inputs -> input (ztf_function_area_hierarchy) -> mappings -> mapping (parent_rank): Mapped source attribute parent_rank is missing in node _SYS_SS2_RETURN_VAR_.
- calculationNode (finalProjection) -> inputs -> input (ztf_function_area_hierarchy) -> mappings -> mapping (h_level): Mapped source attribute h_level is missing in node _SYS_SS2_RETURN_VAR_.
- calculationNode (finalProjection) -> inputs -> input (ztf_function_area_hierarchy) -> mappings -> mapping (is_cycle): Mapped source attribute is_cycle is missing in node _SYS_SS2_RETURN_VAR_.
- calculationNode (finalProjection) -> inputs -> input (ztf_function_area_hierarchy) -> mappings -> mapping (is_orphan): Mapped source attribute is_orphan is missing in node _SYS_SS2_RETURN_VAR_.
- calculationNode (finalProjection) -> inputs -> input (ztf_function_area_hierarchy) -> mappings -> mapping (node_id): Mapped source attribute node_id is missing in node _SYS_SS2_RETURN_VAR_.
- calculationNode (finalProjection) -> inputs -> input (ztf_function_area_hierarchy) -> mappings -> mapping (parent_id): Mapped source attribute parent_id is missing in node _SYS_SS2_RETURN_VAR_.
- calculationNode (finalProjection) -> attributes -> attribute (h_rank): Invalid datatype, length or/and scale are missing: type=0, intDigits=0, fractDigits=0. - calculationNode (finalProjection) -> attributes -> attribute (tree_size): Invalid datatype, length or/and scale are missing: type=0, intDigits=0, fractDigits=0.
- calculationNode (finalProjection) -> attributes -> attribute (parent_rank): Invalid datatype, length or/and scale are missing: type=0, intDigits=0, fractDigits=0.
- calculationNode (finalProjection) -> attributes -> attribute (h_level): Invalid datatype, length or/and scale are missing: type=0, intDigits=0, fractDigits=0.
- calculationNode (finalProjection) -> attributes -> attribute (is_cycle): Invalid datatype, length or/and scale are missing: type=0, intDigits=0, fractDigits=0. - calculationNode (finalProjection) -> attributes -> attribute (is_orphan): Invalid datatype, length or/and scale are missing: type=0, intDigits=0, fractDigits=0.
- calculationNode (finalProjection) -> attributes -> attribute (node_id): Invalid datatype, length or/and scale are missing: type=0, intDigits=0, fractDigits=0. - calculationNode (finalProjection) -> attributes -> attribute (parent_id): Invalid datatype, length or/and scale are missing: type=0, intDigits=0, fractDigits=0.
Thanks,
Yufei
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hi all,
It was because the fields are case sensitive. Changed all fields names to upper case and then the calculation view works.
Thanks,
Yufei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.