this might be assuming more than it should about what the error message contains? Maybe 'Invalid workload: '?