<#4174 [BUG] For incorrect name formats return a b...
# flyte-github
a
#4174 [BUG] For incorrect name formats return a better error Issue created by kumare3 Describe the bug
pyflyte run --remote --name 078b0145-016a-44d8-bac0-fffa2e722f9c test2.py wf --n 10
returns
Copy code
RPC Failed, with Status: StatusCode.INVALID_ARGUMENT
	details: invalid name format: 078b0145-016a-44d8-bac0-fffa2e722f9c
	Debug string UNKNOWN:Error received from peer ipv4:18.116.105.151:443 {grpc_message:"invalid name format: 078b0145-016a-44d8-bac0-fffa2e722f9c", grpc_status:3, created_time:"2023-10-04T23:18:28.696363-07:00"}
This is hard to understand the problem. The reason is flyte/flyteadmin/pkg/manager/impl/validation/execution_validator.go Line 134 in </flyteorg/flyte/commit/81b94a43359adb2d1055e75221048de766769174|81b94a4> returns just the failing field, it should return the expected regex Expected behavior
invalid name format: 078b0145-016a-44d8-bac0-fffa2e722f9c, does not match regex '^[a-z][a-z\-0-9]*$'
Additional context to reproduce No response Screenshots No response Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte