AFx Library library exception: File: ..\..\Dataset2\Dataset2.dataset cannot be found. . ( Error 1000 ) - r

I have a simple Azure Machine Learning experiment, with two input blocks ("Enter Data Manually") that pass their input to an "Execute R Script" block that binds the two inputs.
When the two input values are the same, I get an AFx Library exception FileNotFound. When the two input values are different, everything works fine.
Here is the R code and the experiment outline.
d1 <- maml.mapInputPort(1) # class: data.frame
d2 <- maml.mapInputPort(2) # class: data.frame
print(d1)
print(class(d1))
print(d2)
print(class(d2))
The error I get when I set the same input data in the two input blocks, in more detail is the following:
[Critical] Error: Error 1000: AFx Library library exception: File: ..\..\Dataset2\Dataset2.dataset cannot be found.
[Critical] {"InputParameters":{"DataTable":[{"Rows":2,"Columns":1,"estimatedSize":12001280,"ColumnTypes":
{"System.Int32":1},"IsComplete":true,"Statistics":
{"0":[1.5,1.5,1.0,2.0,0.70710678118654757,2.0,0.0]}}]},"OutputParameters":
[],"ModuleType":"LanguageWorker","ModuleVersion":"
Version=6.0.0.0","AdditionalModuleInfo":"LanguageWorker, Version=6.0.0.0,
Culture=neutral, PublicKeyToken=69c3241e6f0468ca;
Microsoft.MetaAnalytics.LanguageWorker.LanguageWorkerClientRS;
RunRSNR","Errors":"Microsoft.Analytics.Exceptions.ErrorMapping+ModuleException:
Error 1000: AFx Library library exception: File: ..\\..\\Dataset2
\\Dataset2.dataset cannot be found. --->
Microsoft.Numerics.AFxLibraryFileNotFoundException: File: ..\\..\\Dataset2
\\Dataset2.dataset cannot be found.\r\n at
Microsoft.Analytics.IO.Local.DataTableReader..ctor(String filePath)\r\n at
Microsoft.MetaAnalytics.DllModuleHost.DataLab.Handlers.DataTableDatasetHandler.H
andleArgumentString(String argument, ParameterInfo paramInfo)\r\n at
Microsoft.MetaAnalytics.DllModuleHost.ParameterArgumentBinder.InitializeParamete
rValues(MethodInfo method, Dictionary`2 moduleDescription)\r\n at
Microsoft.MetaAnalytics.DllModuleHost.DllModuleMethod.Execute(Dictionary`2
moduleDescription)\r\n at
Microsoft.MetaAnalytics.DllModuleHost.Program.Main(String[] args)\r\n --- End
of inner exception stack trace ---","Warnings":[],"Duration":"00:00:00.5755180"}
Module finished after a runtime of 00:00:01.4722617 with exit code -2
Module failed due to negative exit code of -2
Any suggestion is much appreciated, Flo.

You should get rid of the R code referencing the second dataset because you only have one input dataset.

Related

How to refer tests to source/test files in utPLSQL?

I could use a little hand with utPLSQL.
I am trying to produce the test results so that Sonar would pick it up and scan them. so far, Sonar is picking up the report file, but the test executions are ignored because they are not referencing to the appropriate source files.
I am trying to make a reference to the source and test files when running ut.run(ut_sonar_test_reporter()); and our Jenkins does not have utPLSQL-cli installed. Short version: They said they will not install it.
To get a result for a single test, I tried the following:
spool sonar_results.xml;
exec ut.run('test_get_something');
exec ut.run(ut_sonar_test_reporter(), a_source_file_mapping => ut_file_mappings(ut_file_mapping(file_name => 'this_dir/get_something.fnc', object_owner=> 'GET_SOMETHING_OWNER', object_name=> 'GET_SOMETHING', object_type=>'FUNCTION'));
spool off;
And got the following error message:
Error starting at line : 4 in command -
BEGIN ut.run(ut_sonar_test_reporter(), a_source_file_mapping => ut_file_mappings(ut_file_mapping(file_name => 'this_dir/get_something.fnc', object_owner=> 'GET_SOMETHING_OWNER', object_name=> 'GET_SOMETHING', object_type=>'FUNCTION'));
Error report -
ORA-06550: line 1, column 219:
PLS-00306: wrong number or types of arguments to call to 'RUN'
ORA-06550: line 1, column 219
PL/SQL: Statement ignored
utPLSQL's documentation doesn't provide anything about referencing parameters like a_source_file_mapping or a_test_file_mapping.
I am a little stumped.

RF 3.0.4 nested dictionary syntax error if first key is number, dot notation doesn't work

I am using rf 3.0.4. I upgraded because of the dot notation upgrade (before I was using rf 2.9).
My problem is when I want to access a nested dictionary item and the first key (it is an id from db) is a number, I got a syntax error.
I have a nested dictionary: &{Attributes}
So what I want to do:
${Attributes.1000.name}
The syntax error I get:
Resolving variable '${Attributes.1000.name}' failed: SyntaxError: invalid syntax (<string>, line 1)
And what is working:
${Attributes["1000"]["name"]}
I'd like to use the dot notation, because it is more readable.
Do any of you know why it doesn't work?
It seems to me to be a limitation of Robot Framework. When a dictionary key item starts with a number (even when a string) then it will fail. In the below two test cases this is shown.
To me this sounds like a defect and you may want to log this as an issue with the project's GitHub issue log.
*** Settings ***
Library Collections
*** Variables ***
${name} MyName
&{person} name=${name}
&{person_valid} A1000=${person} A2000=${person}
&{person_invalid} 1000A=${person} 2000A=${person}
*** Test Cases ***
TC - Valid
${pers} Set Variable ${person_valid.A1000}
Dictionaries Should Be Equal ${pers} ${person}
${pers_name_1} Set Variable ${person_valid["A1000"]["name"]}
Should Be Equal As Strings ${pers_name_1} ${name}
${pers_name_2} Set Variable ${person_valid.A1000.name}
Should Be Equal As Strings ${pers_name_2} ${name}
TC - Fails
Run Keyword And Expect Error
... Resolving variable '\${person_invalid.1000A}' failed: SyntaxError: invalid syntax (<string>, line 1)
... Set Variable ${person_invalid.1000A}
Run Keyword And Expect Error
... Resolving variable '\${person_valid.1000A.name}' failed: SyntaxError: invalid syntax (<string>, line 1)
... Set Variable ${person_valid.1000A.name}

Error when inserting a UUID into YAML using "!!python/object"

For an automated test script, I would like to generate random UUID values at runtime, so I added some YAML that looks like this:
---
applicant:
idNumbers:
nationalId: !!python/object:uuid.uuid4
However, this generates an error when I try to yaml.load the value:
ConstructorError: expected a mapping node, but found scalar
in "<unicode string>", line 4, column 17:
nationalId: !!python/object:uuid.uuid4
^
How do I inject a UUID value via YAML tags?
I found the error message a bit intimidating at first, but after some thought, I was able to unpack it.
The parser is expecting a "mapping" node, not a scalar. So, what happens if I add a mapping?
>>> yaml.load('''---
... applicant:
... idNumbers:
... nationalId: !!python/object:uuid.uuid4 {}''')
{'applicant': {'idNumbers': {'nationalId': UUID('71e09d1d-e84e-4ea6-855d-be1a2e91b60a')}}}
Additional info: http://yaml.org/type/map.html

Errors when loading ci-merchant library

I'm trying to use http://ci-merchant.org/ for CodeIgniter. But when I load the merchant library, I get these errors:
A PHP Error was encountered
Severity: Warning
Message: stripos() expects parameter 1 to be string, array given
Filename: libraries/merchant.php
Line Number: 97
A PHP Error was encountered
Severity: Warning
Message: strtolower() expects parameter 1 to be string, array given
Filename: libraries/merchant.php
Line Number: 103
Here is my code:
$this->load->library('merchant');
$this->merchant->load('paypal_express');
Looking at the source of that file, the driver name needs to be passed as a string. So I highly doubt the two lines of code you put above is actually what's being called, it looks like you are passing an array as the driver name.
If you aren't sure where it's coming from, try adding some debug_print_backtrace() lines to the merchant.php file to figure out where the array is getting passed from.

Error plotting data read from csv file

I am getting the followin error when trying to plot in GNU/octave:
octave:22> plot(b(:,2),b(:,4))
error: invalid conversion from real matrix to real scalar
error: __calc_dimensions__: expecting graphics handle as only argument
error: called from:
error: /usr/share/octave/3.6.2/m/plot/private/__go_draw_axes__.m at line 55, column 8
error: /usr/share/octave/3.6.2/m/plot/private/__go_draw_figure__.m at line 167, column 19
error: /usr/share/octave/3.6.2/m/plot/__gnuplot_drawnow__.m at line 86, column 5
octave:23>
The variable b is loaded from a csv file, as follows:
b=csvread("my.csv")
Content of my.csv
1,40.0942,0.775539,18.658
2,40.1882,0.857556,415.677
3,40.2818,0.858294,233.934
4,40.3748,0.887273,348.503
5,40.4669,0.908618,27.0149
6,40.558,0.908496,234.81
7,40.6478,0.911826,58.3943
8,40.7362,0.922848,204.128
9,40.823,0.928547,7.75615
10,40.908,0.920065,0.0654867
Sadly,sometimes the erros happens, others do not. (octave bug?)
Does anyone knows what is going on?
By the way, my systems is: Ubuntu 12.11, octave 3.6.2, Linux kernel 3.5.00-22-generic
Edit:
I think it is a bug. The foregoing error is caused by a plot called after a plotyy. To reproduce the error, execute these commands:
1> b=csvread("my.csv");
2> plot(b(:,2),b(:,4))
3> plotyy(b(:,1),b(:,2),b(:,1),b(:,4))
4> plot(b(:,2),b(:,4))

Resources